package week9;

import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;

public class startUp extends MIDlet
{
  public static MyDisplay dis = null;
  public static UIController uic = null;

  public startUp()
  {
    dis = MyDisplay.getInstance();
    dis.setMyDisplay(Display.getDisplay(this));
    if (null == uic)
      uic = new UIController();
  }

  protected void destroyApp(boolean paramBoolean)
    throws MIDletStateChangeException
  {
  }

  protected void pauseApp()
  {
  }

  protected void startApp()
    throws MIDletStateChangeException
  {
    uic.setCurrent(1);
  }
}